package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 活动平台配置表
 */
@Getter
@Setter
@Document(collection = "activity_platform_config")
public class ActivityPlatformConfig extends EntityBase {

    /**
     * 生成环境
     */
    public final static String DEPLOY_ENV_PROD = "prod";
    /**
     * 测试环境
     */
    public final static String DEPLOY_ENV_TEST = "test";
    /**
     * 所有人可见
     */
    public final static String ENV_SHOW_ALL = "all";
    /**
     * 部分人可见
     */
    public final static String ENV_SHOW_PART = "portion";
    /**
     * 平台:﻿wechat-mini:微信小程序;app:APP;qq:QQ小程序;qq-h5:QQH5;h5:纯H5;wechat-third:微信第三方
     */
    @Indexed
    private String platform;
    private String activityId;
    private String activityName;
    private Boolean status = Boolean.TRUE;
    private String optUserLoginName;
    private String optUserRealName;
    private Date optTime;
    private String desc;
    /**
     * 排行榜控制逻辑，true:实时更新,false:延迟更新
     */
    private Boolean rankCache = Boolean.FALSE;
    /**
     * 应用ID
     */
    @Indexed
    private String appId;
    /**
     * 应用名字
     */
    private String appName;

    /**
     * 发布环境 test 测试，prod 线上
     */
    private String deployEnv = "test";
    /**
     * 发布环境类型
     */
    private String deployEnvShowType = "all";

}
